import "@babel/polyfill";
// import "@/libs/rem"

import Vue from "vue";
import Vuex from "vuex";
import ElementUI from 'element-ui';
Vue.use(ElementUI);
Vue.use(Vuex);

import axios from "./plugins/axios";
import util from "./libs/util";

// 这里是调试入口

import demo from './demo.vue';

var options = {
  url: "token/Login",
  method: "post",
  data: { username: "admin", password: "admin@123" }
};
axios(options).then(res => {
  util.cookies.set("token", res.token);
});

new Vue({
  el: "#app",
  render: h => h(demo),
});
